package com.isoftstone.merchant.service.role;

import com.isoftstone.merchant.entity.role.PRoleUser;
import com.isoftstone.merchant.entity.role.PRoleUserKey;

import java.util.List;

public interface IPRoleUserService {
    //保存用户和角色的ID
    void saveUserRole(String userId, String roleId) throws Exception ;


    List<PRoleUser> getRolesByUserId(String userId) throws Exception;

    void deleteUserRole(String userId) throws Exception;

    List<String> getMenuIdsByUserId(String comUserCode) throws Exception;
        //查看登陆者id
    String getOperatorId(int roleId) throws Exception;
    //根据操作员呢id查角色id
    List<PRoleUserKey> getroleIdByOperatorId(String operatorId) throws Exception;
}
